package com.adcc.loadsheet.billing.mapper.mysql;

import com.adcc.loadsheet.billing.entity.BillingBillEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 计费帐单Mapper
 * Created by zhaoml on 2020-09-16.
 */
@Mapper
public interface BillingBillEntityMapper {

    //根据主键ID查询
    BillingBillEntity selectByPrimaryKey(Integer id);

    //新增计费帐单
    Integer insert(BillingBillEntity record);

    //修改计费帐单
    Integer update(BillingBillEntity record);

    //查询计费帐单
    List<BillingBillEntity> select(Map<String, Object> map);

    //根据合同用户删除
    int deleteByContractUserId(Integer contractUserId);
}